package com.qys.livesMall.shop.open.anchor.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AnchorOpenMapper {

    List<Map<String,Object>> getAnchorCommissionRate(@Param("ids")List<Long> ids);

    Long getUserId(@Param("id")Long id);

    Map<String, Object> getAnchor(Long anchorId);

    /**
     * 根据直播场次id获取直播间编号
     * @param sessionId
     * @return
     */
    String getRoomInfoByLivesSessionId(Long sessionId);

    Long getAnchorIdByTaskId(Long taskId);
}
